﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public enum Cai:int
    { 
        川菜,
        粤菜,
    }
    class CookRobot : Robot
    {
        public int a;
        public CookRobot(string name,Cai cai):base(name) 
        {
            a = (int)cai;
        }
        public override void Working()
        {
            Console.WriteLine("炒菜机器人启动！！！");
            if (a == 0)
            {
                Console.WriteLine("请稍等...");
                Console.WriteLine("...");
                Console.WriteLine("...");
                Console.WriteLine("你的川菜好咯！！");
            }
            else if (a == 1)
            {
                Console.WriteLine("请稍等...");
                Console.WriteLine("...");
                Console.WriteLine("...");
                Console.WriteLine("你的粤菜好咯！！");
            }
        }
    }
}
